package com.ssh.entity;

import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class ActivityImage extends BaseEntity{

	private static final long serialVersionUID = 6002548593623858681L;
	private int imageType;
	private ActivitySuperMarket activitySuperMarket;
	private String name;
	private String url;
	private Timestamp createDate;

	public ActivityImage() {
	}
	


	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Timestamp getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Timestamp createDate) {
		this.createDate = createDate;
	}



	public int getImageType() {
		return imageType;
	}



	public void setImageType(int imageType) {
		this.imageType = imageType;
	}


	@ManyToOne(cascade ={CascadeType.REFRESH},fetch = FetchType.LAZY)       
    @JoinColumn(name="activitySuperMarketId") 
	public ActivitySuperMarket getActivitySuperMarket() {
		return activitySuperMarket;
	}



	public void setActivitySuperMarket(ActivitySuperMarket activitySuperMarket) {
		this.activitySuperMarket = activitySuperMarket;
	}

}